<?php
include 'common.php';
$name = $_GET['name']? $_GET['name']:'' ;
$a = $_GET['a'];
?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>Login</title>
        <link rel="stylesheet" type="text/css" href="./css/style.css"> 
    </head>
    <body>
		<div id="login" class="w1">
			<div >
			<a href="index.php"><img src="./images/moonbasalogo1.jpg" alt="" /></a>
			</div>
			<div class="login_main mt10">
				<div class="top"><img src="./images/l_02.jpg" alt="" /></div>
				<div class="bottom">
					<div class="left fl fontyh">
					<form action="./dologin.php" method="post">
						<input type="hidden" name="a" value="<?php echo $a ?>" />
						<div>　用户名: <input type="text" name="name" value="<?php echo $name ?>" /></div>
							<div>　密　码: <input type="password" name="pwd" /></div>
							<div>　验证码: 
								<input class="yzm" type="text" name="yzm"/>
								<img onclick="show(this)" src="./yzm/yzm.php" alt="" title="点击刷新" />
							</div>
							<script>
                				function show(obj){
                    				obj.src= obj.src + '?i=' + Math.random();  
                				}
            				</script>
							<div class="mt20"><input class="submit fontyh" type="submit" value="登陆" /></div>
						</form>
					
					</div>
					<div class="right fr fontyh">
						<div>
							<span>还不是梦芭莎会员？</span>
							<a href="./register.php<?php if(!empty($a)) echo '?a='.$a ?>">立即注册</a>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<!-- 这里设置login页面的对齐位置 -->
			<div class="login_footer">
				<!-- 这里直接引用主页上面的footer，稍作修改，继承属性 -->
				<div id="footer" class="mt20">
				<a href="#">首页</a>
				<a href="#">公司简介</a>
				<a href="#">旗下品牌</a>
				<a href="#">零售店址</a>
				<a href="#">梦芭莎网盟</a>
				<a href="#">网店代理</a>
				<a href="#">网站地图</a>
				<a href="#">友情链接</a>
				<br />
				<span>Copyright © 2010-2019 梦芭莎官方网站，广州摩拉网络科技有限公司 All Rights Reserved 粤B2-20080069号 </span>
			</div>
			</div>
		</div>
	</body>
</html>
